#pragma once

#include "../../Forest/TreeNode.h"

class Grid : public TreeNode
{
public:
	Grid();
	virtual ~Grid();

	void Draw();

private:
	void Init();

	D3DXMATRIX m_View, m_Proj;
	ID3D10Buffer *m_VertexBuffer;
	ID3D10InputLayout* m_Layout;
	ID3D10Effect *m_Effect;
	ID3D10EffectTechnique *m_Tech;
	ID3D10EffectMatrixVariable *m_WorldVar, *m_ViewVar, *m_ProjVar;

	Grid(const Grid &t);
	Grid& operator= (const Grid &t);
};